using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Templates_HomePageTemplate : BaseTemplate
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            base.SetFlashHeaderVariables(flashHeader);
        }
    }

    protected void dsPosts_SelectData(object sender, Acms.DataControls.SelectEventArgs<Acms.Bll.Post> e)
    {
        Acms.Bll.Post containerPost = CurrentPost.FindChildByName("HomeContent");
        if (containerPost == null)
        {
            containerPost = CurrentPost.FindChildByName("Content");
        }
        if (containerPost == null)
        {
            containerPost = CurrentPost.FindChildByName("Contents");
        }
        if (containerPost != null)
        {
            e.SetData(containerPost.Children);
        }
    }
}
